body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 添加暗色主题过渡效果 */
* {
  transition: background-color 0.3s, border-color 0.3s;
}

/* 定制滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 暗色主题下的滚动条样式 */
[data-theme='dark'] ::-webkit-scrollbar-track {
  background: #141414;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
  background: #434343;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
  background: #666;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Logo 动画效果 */
@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ant-layout-sider:hover .anticon-cloud-server {
  animation: logoSpin 2s linear infinite;
}

/* 主题切换过渡 */
.ant-layout-sider,
.ant-layout-header,
.ant-layout-content,
.ant-menu {
  transition: all 0.3s !important;
}
